<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
         /* switch语句 当case后的结果为空的时候，如果不加break，会输出下面case语句最近的一个有结果的case语句 */
        var a=5;
        switch(a){
            case 1:console.log("这是是1");break;
            case 2:console.log("这是是1");break;
            case 3:console.log("这是是1");break
            case 4: 
            case 5:
            case 6:console.log("6");break;
            default:
                console.log("是jojo哒");
        }
        
        
        </script>
</body>
</html>